.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.fileInput {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.colorPickerContainer {
    display: flex;
    gap: 20px;
}

.imageContainer {
    flex: 1;
    position: relative;
    user-select: none;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 600px;
}

.canvasWrapper {
    position: relative;
    display: inline-block;
    transition: transform 0.05s linear;
}

.clickableCanvas {
    max-width: 100%;
    cursor: crosshair;
}

.colorMarker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: transform 0.05s linear;
}

.colorMarkerLabel {
    position: absolute;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.colorPalette {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colorItem {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    position: relative;
}

.colorBox {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.colorInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.colorInfo span:first-child {
    font-weight: bold;
}

.colorInfo span:last-child {
    font-family: monospace;
    color: #666;
}

.removeButton {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}

.removeButton:hover {
    background: rgba(255, 0, 0, 0.2);
}

.previewImage {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buttonContainer {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.threeDButton {
    position: relative;
    padding: 12px 24px;
    background: #ff9933; /* 基础橙色 */
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 左上角阴影效果 */
.threeDButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px; /* 与按钮相同的圆角 */
    -webkit-mask-image: linear-gradient(135deg, black 15%, transparent 50%);
    mask-image: linear-gradient(135deg, black 15%, transparent 50%);
}

/* 右下角高光效果 */
.threeDButton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px; /* 与按钮相同的圆角 */
    -webkit-mask-image: linear-gradient(-45deg, black 15%, transparent 50%);
    mask-image: linear-gradient(-45deg, black 15%, transparent 50%);
}

/* 悬停效果 */
.threeDButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

/* 点击效果 */
.threeDButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 153, 51, 0.2);
}
